package com.xinzhidi.web.equipment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xinzhidi.web.equipment.domain.EquipmentArchives;
import com.xinzhidi.web.equipment.dto.EquipmentArchivesListDto;
import com.xinzhidi.web.equipment.vo.EquipmentArchivesListVo;

import java.util.List;


/**
 * 存档Mapper接口
 *
 * @author cx
 * @date 2023-07-12
 */
public interface EquipmentArchivesMapper  extends BaseMapper<EquipmentArchives>
{
    /**
     * 查询存档
     *
     * @param id 存档主键
     * @return 存档
     */
    public EquipmentArchives selectEquipmentArchivesById(Long id);

    /**
     * 查询存档列表
     *
     * @param equipmentArchives 存档
     * @return 存档集合
     */
    public List<EquipmentArchives> selectEquipmentArchivesList(EquipmentArchives equipmentArchives);

    /**
     * 新增存档
     *
     * @param equipmentArchives 存档
     * @return 结果
     */
    public int insertEquipmentArchives(EquipmentArchives equipmentArchives);

    /**
     * 修改存档
     *
     * @param equipmentArchives 存档
     * @return 结果
     */
    public int updateEquipmentArchives(EquipmentArchives equipmentArchives);

    /**
     * 删除存档
     *
     * @param id 存档主键
     * @return 结果
     */
    public int deleteEquipmentArchivesById(Long id);

    /**
     * 批量删除存档
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEquipmentArchivesByIds(Long[] ids);

    List<EquipmentArchivesListVo> selectListNative(EquipmentArchivesListDto dto);

}
